﻿#ifndef __lvgl_power_off_h__
#define __lvgl_power_off_h__


#include "main.h"
#include "lvgl_project.h"
#include "my_system.h"


typedef struct
{
	char p_buf[100];

	lv_obj_t *cont_main;
	lv_obj_t *task;
	lv_anim_t anim_in;
	lv_anim_t anim_out;
	lv_anim_path_t anim_path_in;
	lv_anim_path_t anim_path_out;

    lv_obj_t* label1;
    lv_obj_t* label2;
    lv_obj_t* label3;
    lv_obj_t* label4;
    lv_obj_t* label5;
    lv_obj_t* label6;
    lv_obj_t* label7;
    lv_obj_t* label8;
    lv_obj_t* label9;
    lv_obj_t* label10;


    lv_obj_t* image1;
    lv_obj_t* image2;
    lv_obj_t* image3;


    lv_obj_t* btn1;
    lv_obj_t* img_gif1;

    __lvgl_close_data close_data;


    lv_anim_t anim_select_x;
    lv_anim_path_t anim_path_select_x;
    lv_anim_t anim_select_y;
    lv_anim_path_t anim_path_select_y;
    lv_anim_t anim_select_w;
    lv_anim_path_t anim_path_select_w;
    lv_anim_t anim_select_h;
    lv_anim_path_t anim_path_select_h;
    lv_obj_t* cont_select;
    lv_obj_t* cont_select_auxiliary;
    int select_close_count;

    int16_t select_num;
    bool select_flag;
    int select_count;

    bool timed_shutdown;
    bool timed_shutdown_switch;

    int h;
    int m;
    int s;


    int main_cont_x;
    int main_cont_y;

}__lvgl_power_off_data;

extern __lvgl_power_off_data lvgl_power_off_data;




void lvgl_power_off_create(lv_obj_t * Fu);
void lvgl_power_off_close(void);
void lvgl_power_off_close_task(int num);
void lvgl_power_off_hidden(void);
void lvgl_power_off_set_time(char* data);

#endif
